<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

<f:view contentType="text/html">
	<h:head>
		<ui:include src="/resources/templates/css-cashweb.xhtml" />
		<h:outputScript name="jquery.maskMoney.js" library="js" />
		<h:outputScript name="locale-primefaces.js" library="js" />
	</h:head>

	<h:body>
		<h:form id="form">

			<!-- Dialogos -->
			<ui:include src="dialogoExclusao.xhtml" />
			<ui:insert name="demaisDialogos" />

			<!-- Pagina de Listagem -->
			<ui:include src="/resources/templates/header.xhtml" />

			<!-- 2-column layout -->
			<div class="row row-offcanvas row-offcanvas-right">
				<h:panelGroup layout="block" styleClass="col-md-12"
					style="padding-left:25px;padding-right:25px;">
					
					<ui:insert name="meusBreadCrumbs" />
					
					<p:messages id="msgs" showDetail="true" autoUpdate="true"
						closable="true" escape="false" />
					<h:panelGroup id="panelFormularioEdicao" layout="block"
						rendered="#{pManagedBean.isExibirFormEdicao}">
						<p:panel
							header="#{i18n.formTitulo} ( #{i18n.operacao}: #{pManagedBean.tipoOperacao} )"
							toggleable="true" style="font-size:12px" >

							<ui:include src="templateForm-painelUnico.xhtml" />
							<ui:include src="botoesPadraoFormularios.xhtml" />

						</p:panel>
					</h:panelGroup>
					<ui:include src="templateLista-panelFiltroPesquisa.xhtml" />
					<ui:include src="templateLista-panelListagem.xhtml" />
					<ui:include src="exportarDados.xhtml" />
					<ui:insert name="demaisPaineisDepoisExportadorDados" />
				</h:panelGroup>
			</div>
		</h:form>
		<script type="text/javascript">
			jQuery(function() {
				jQuery('input[id*=campo_valor]').maskMoney({
					symbol : 'R$ ',
					showSymbol : true,
					thousands : '.',
					decimal : ',',
					symbolStay : true
				});
			});
		</script>

		<!-- Ajax Status -->
		<ui:include src="ajax-status.xhtml" />

	</h:body>
</f:view>

</html>